/* WeChatPadPro-861 标签头部自定义背景样式 */

/* 通用标签头部样式 */
.swagger-ui .opblock-tag-section {
  position: relative;
  margin-bottom: 30px;
}

/* 标签头部容器 */
.swagger-ui .opblock-tag-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 标签头部背景 */
.swagger-ui .opblock-tag {
  position: relative;
  z-index: 2;
  background-color: transparent !important;
  box-shadow: none !important;
  border-left: none !important;
  padding: 20px !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* 标签头部背景装饰 */
.swagger-ui .opblock-tag-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

/* 标签头部背景图案 */
.swagger-ui .opblock-tag-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: 0.1;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* 标签头部悬停效果 */
.swagger-ui .opblock-tag-container:hover::after {
  opacity: 0.2;
}

/* 标签名称样式 */
.swagger-ui .opblock-tag span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

/* 标签图标 */
.swagger-ui .opblock-tag span::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 标签描述 */
.swagger-ui .opblock-tag .tag-description {
  margin-left: 10px;
  font-size: 14px;
  color: #7f8c8d;
  font-weight: normal;
}

/* 为不同的标签设置不同的背景图案和图标 */

/* Favor - 收藏模块 */
.swagger-ui .opblock-tag[data-tag="favor"] span::before,
.swagger-ui .opblock-tag[data-tag="收藏"] span::before {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="favor"]::after,
.swagger-ui .opblock-tag-container[data-tag="收藏"]::after {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="favor"]::before,
.swagger-ui .opblock-tag-container[data-tag="收藏"]::before {
  background-color: rgba(142, 68, 173, 0.05);
  border-left: 4px solid #8e44ad;
}

/* Finder - 视频号模块 */
.swagger-ui .opblock-tag[data-tag="finder"] span::before,
.swagger-ui .opblock-tag[data-tag="视频号"] span::before {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="finder"]::after,
.swagger-ui .opblock-tag-container[data-tag="视频号"]::after {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="finder"]::before,
.swagger-ui .opblock-tag-container[data-tag="视频号"]::before {
  background-color: rgba(41, 128, 185, 0.05);
  border-left: 4px solid #2980b9;
}

/* Friend - 朋友模块 */
.swagger-ui .opblock-tag[data-tag="friend"] span::before,
.swagger-ui .opblock-tag[data-tag="朋友"] span::before {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="friend"]::after,
.swagger-ui .opblock-tag-container[data-tag="朋友"]::after {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="friend"]::before,
.swagger-ui .opblock-tag-container[data-tag="朋友"]::before {
  background-color: rgba(22, 160, 133, 0.05);
  border-left: 4px solid #16a085;
}

/* FriendCircle - 朋友圈模块 */
.swagger-ui .opblock-tag[data-tag="friendcircle"] span::before,
.swagger-ui .opblock-tag[data-tag="朋友圈"] span::before {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="friendcircle"]::after,
.swagger-ui .opblock-tag-container[data-tag="朋友圈"]::after {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="friendcircle"]::before,
.swagger-ui .opblock-tag-container[data-tag="朋友圈"]::before {
  background-color: rgba(39, 174, 96, 0.05);
  border-left: 4px solid #27ae60;
}

/* Group - 群组模块 */
.swagger-ui .opblock-tag[data-tag="group"] span::before,
.swagger-ui .opblock-tag[data-tag="群组"] span::before {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="group"]::after,
.swagger-ui .opblock-tag-container[data-tag="群组"]::after {
  background-image: url('');
}

.swagger-ui .opblock-tag-container[data-tag="group"]::before,
.swagger-ui .opblock-tag-container[data-tag="群组"]::before {
  background-color: rgba(243, 156, 18, 0.05);
  border-left: 4px solid #f39c12;
}

/* 其他标签样式... 可以继续添加更多标签的自定义样式 */

/* Admin - 管理模块 */
.swagger-ui .opblock-tag[data-tag="admin"] span::before,
.swagger-ui .opblock-tag[data-tag="管理"] span::before {
  background-image: url('');
}

/* 标签展开/折叠动画 */
.swagger-ui .opblock-tag-section .opblock-tag + .no-margin {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.swagger-ui .opblock-tag[aria-expanded="false"] + .no-margin {
  max-height: 0;
  opacity: 0;
}

.swagger-ui .opblock-tag[aria-expanded="true"] + .no-margin {
  max-height: 2000px; /* 足够大的值以确保内容可以完全展开 */
  opacity: 1;
} 